/**
 * @filename:SubCourseExamPaperServiceImpl Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.SubCourseExamPaperMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.SubCourseExamPaper;
import com.znufe.exam.service.SubCourseExamPaperService;

/**   
 *  
 * @Description:  课程表——SERVICEIMPL
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Service
public class SubCourseExamPaperServiceImpl implements SubCourseExamPaperService {
	
	@Autowired
	public SubCourseExamPaperMapper subCourseExamPaperMapper;
	
	//查询对象
	@Override
	public SubCourseExamPaper selectByPrimaryKey(Integer id) {
		return subCourseExamPaperMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return subCourseExamPaperMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(SubCourseExamPaper subCourseExamPaper) {
		return subCourseExamPaperMapper.insertSelective(subCourseExamPaper);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(SubCourseExamPaper subCourseExamPaper) {
		return subCourseExamPaperMapper.updateByPrimaryKeySelective(subCourseExamPaper);
	}
	
	//查询集合
	@Override
	public List<SubCourseExamPaper> querySubCourseExamPaperList(SubCourseExamPaper subCourseExamPaper) {
		return subCourseExamPaperMapper.querySubCourseExamPaperList(subCourseExamPaper);
	}

    @Override
    public List<Integer> getAllExamPaperId(Integer subCourseId) {
        return subCourseExamPaperMapper.getAllExamPaperId(subCourseId);
    }

    @Override
    public int deleteBySubCourseId(Integer subCourseId) {
        return subCourseExamPaperMapper.deleteBySubCourseId(subCourseId);
    }
}